package org.zero.onlinesubject.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.zero.onlinesubject.entity.ClassInfo;
import org.zero.onlinesubject.entity.Role;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class UserVo implements Serializable {

    private String userid;

    private String username;

    private String avatar;

    // 需要脱敏处理
    private String phone;

    private Integer age;

    private String gender;

    // 需要脱敏处理
    private String email;

    private String online;

    private Integer learnCount;

    private String classnumber;

    private ClassInfo classInfo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registerDate;

    private Role role;

    private static final long serialVersionUID = 1L;
}
